{* category_list *}
{load_presentation_object filename="category_list" assign="obj"}
<div class="browsebox">
    <div class="title">BY CATEGORY</div>
{* Start category list here *}
<ul>
    {* Loop through the list of categories *}
    {section name=i loop=$obj->mCategories}
        {assign var=selected value=""}
        {* Verify if the category is selected to decide what CSS style to use *}
        {if ($obj->mSelectedCategory == $obj->mCategories[i].category_id)}
            {assign var=selected value="class=\"selected\""}    
        {/if}
        <li>
            {* Generate a link for a new category in the list *}
            <a {$selected} href="{$obj->mCategories[i].link_to_category}">{$obj->mCategories[i].category}</a>
        </li>
    {/section}
</ul>
{* End menu list *}
</div>